package com.woniu.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "课程实体类")
public class Course implements Serializable {
    @ApiModelProperty(value = "课程ID")
    private Integer id ;//     课程ID             int not null,
    @ApiModelProperty(value = "课程名")
    private String courseName;//   课程名        varchar(20) not null,
    @ApiModelProperty(value = "讲师ID")
    private Integer userId;//      讲师ID         int not null,
    @ApiModelProperty(value = "课程分类")
    private String courseType;//     课程分类      varchar(20) not null,
    @ApiModelProperty(value = "课程状态")
    private String  state ;//      课程状态（y为正常，n为下架）         char not null,
    @ApiModelProperty(value = "课程标签")
    private String courseLabel;//  课程标签        varchar(20),
    @ApiModelProperty(value = "加入学习人数")
    private Integer number ;//    加入学习人数,默认0          int not null,
    @ApiModelProperty(value = "课程描述 ")
    private String describe;//  课程描述       varchar(255),

    @ApiModelProperty(value = "图片地址 ")
    private String image;//     图片地址           varchar(255),

    @ApiModelProperty(value = "课程创建时间")
    private Date createTime;//    课程创建时间       date not null,
    @ApiModelProperty(value = "课程更新时间")
    private Date updateTime;//     课程更新时间     dateTime not null,
    @ApiModelProperty(value = "课程对应的讲师")
    private User user;//课程对应的讲师
    @ApiModelProperty(value = "课程对应的章节集合")
    private List<CourseSection> courseSections;//课程对应的章节
}
